package com.szb.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class WebController {

    @Value("${remote.host}")
    private String remoteHost;

    @GetMapping("/docker")
    public String index(Model model) {
        model.addAttribute("message", "日志在线查看（docker版本） V1.0");
        model.addAttribute("remoteHost", remoteHost);
        System.out.println(remoteHost);
        return "index";
    }

}